Skip to content

Conversation

mcapuccini
Copy link

It would be very nice to have dnsutils installed in the mesosphere/spark container. This would make possible to do service discovery using mesos-dns or consul. This would enable the users to submit this kind of commands through Chronos:

MASTER_PORT=$(dig +short spark-dispatcher.service.consul SRV | awk '{print $3}' | sort | head -1) && \
bin/spark-submit --class org.apache.spark.examples.SparkPi \ 
--master mesos://spark-dispatcher.service.consul:$MASTER_PORT \
--deploy-mode cluster \
/mnt/container-volumes/spark-1.6.0-bin-hadoop2.4/lib/spark-examples-1.6.0-hadoop2.4.0.jar \
1000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant